import { UserTokenModel } from "@/types/models/user-token.model";
import { request } from "umi";

export function ssoLogin(code: string) {
    return request<UserTokenModel>('/login/test', {
        method: 'GET',
        headers: { 'Content-Type': 'application/json' },
        params: { code }
    })
}